src1=exitCode.c
des1=exitCode.exe
src2=customExitcode.c
des2=customExitcode.exe
src3=testExit.c
des3=testExit.exe
src4=waitProcess.c
des4=waitProcess.exe
src5=pwdandPWD.c
des5=pwdandPWD.exe

$(des1):$(src1)
	@gcc $^ -o $@ -std=c99
	@echo "compile $^ to $@"
$(des2):$(src2)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $^ to $@"
$(des3):$(src3)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $^ to $@"
$(des4):$(src4)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $^ to $@"
$(des5):$(src5)
	@gcc $^ -o $@ -std=c99 
	@echo "compile $^ to $@"
.PHONY:clean* 
clean1:
	@rm -rf $(des1) 
	@echo "remove $(des1)"
clean2:
	@rm -rf $(des2) 
	@echo "remove $(des2)"
clean3:
	@rm -rf $(des3) 
	@echo "remove $(des3)"
clean4:
	@rm -rf $(des4) 
	@echo "remove $(des4)"
clean5:
	@rm -rf $(des5) 
	@echo "remove $(des5)"
